#include "tacho.h"

void tachoInit(uint8_t left1, uint8_t left2, uint8_t right1, uint8_t right2){
  // wat doen we hier?!?
  tachoLeft1 = left1;
  tachoLeft2 = left2;
  tachoRight1 = right1;
  tachoRight2 = right2;
}

uint8_t tachoRead(){
	// read analog values
	uint8_t c = analogRead(tachoLeft1);
	uint8_t p = analogRead(tachoRight1);
	// calc
	uint8_t x = c + p;
	return(x);
}
